<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rtcpsu: xrtcpsu.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.gif"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">rtcpsu
   </div>
   <div id="projectbrief">Xilinx SDK Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xrtcpsu_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xrtcpsu.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga71a08172e9403add8c6ec37842b49512"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga71a08172e9403add8c6ec37842b49512">XRtcPsu_SetTime</a> (<a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *InstancePtr, u32 Time)</td></tr>
<tr class="memdesc:ga71a08172e9403add8c6ec37842b49512"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sets the RTC time by writing into rtc write register.  <a href="group__rtcpsu__v1__0.html#ga71a08172e9403add8c6ec37842b49512">More...</a><br /></td></tr>
<tr class="separator:ga71a08172e9403add8c6ec37842b49512"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad47ac1cadbbe8dd0e67588d1fc658cc2"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gad47ac1cadbbe8dd0e67588d1fc658cc2">XRtcPsu_GetCurrentTime</a> (<a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *InstancePtr)</td></tr>
<tr class="memdesc:gad47ac1cadbbe8dd0e67588d1fc658cc2"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function gets the current RTC time.  <a href="group__rtcpsu__v1__0.html#gad47ac1cadbbe8dd0e67588d1fc658cc2">More...</a><br /></td></tr>
<tr class="separator:gad47ac1cadbbe8dd0e67588d1fc658cc2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga201537801ac896c73018a8719e8637d8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga201537801ac896c73018a8719e8637d8">XRtcPsu_SetAlarm</a> (<a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *InstancePtr, u32 Alarm, u32 Periodic)</td></tr>
<tr class="memdesc:ga201537801ac896c73018a8719e8637d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sets the alarm value of RTC device.  <a href="group__rtcpsu__v1__0.html#ga201537801ac896c73018a8719e8637d8">More...</a><br /></td></tr>
<tr class="separator:ga201537801ac896c73018a8719e8637d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaac3d95ea1a75533a1fd3cd95d62a9914"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gaac3d95ea1a75533a1fd3cd95d62a9914">XRtcPsu_SecToDateTime</a> (u32 Seconds, <a class="el" href="struct_x_rtc_psu___d_t.html">XRtcPsu_DT</a> *dt)</td></tr>
<tr class="memdesc:gaac3d95ea1a75533a1fd3cd95d62a9914"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function translates time in seconds to a YEAR:MON:DAY HR:MIN:SEC format and saves it in the DT structure variable.  <a href="group__rtcpsu__v1__0.html#gaac3d95ea1a75533a1fd3cd95d62a9914">More...</a><br /></td></tr>
<tr class="separator:gaac3d95ea1a75533a1fd3cd95d62a9914"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga15d97f88e65f27121f56f06480717824"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga15d97f88e65f27121f56f06480717824">XRtcPsu_DateTimeToSec</a> (<a class="el" href="struct_x_rtc_psu___d_t.html">XRtcPsu_DT</a> *dt)</td></tr>
<tr class="memdesc:ga15d97f88e65f27121f56f06480717824"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function translates time in YEAR:MON:DAY HR:MIN:SEC format to seconds.  <a href="group__rtcpsu__v1__0.html#ga15d97f88e65f27121f56f06480717824">More...</a><br /></td></tr>
<tr class="separator:ga15d97f88e65f27121f56f06480717824"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga33633f27f8155128cc6815d883f9e22c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga33633f27f8155128cc6815d883f9e22c">XRtcPsu_CalculateCalibration</a> (<a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *InstancePtr, u32 TimeReal, u32 CrystalOscFreq)</td></tr>
<tr class="memdesc:ga33633f27f8155128cc6815d883f9e22c"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function calculates the calibration value depending on the actual realworld time and also helps in deriving new calibration value if the user wishes to change his oscillator frequency.TimeReal is generally the internet time with EPOCH time as reference i.e.,1/1/1970 1st second.  <a href="group__rtcpsu__v1__0.html#ga33633f27f8155128cc6815d883f9e22c">More...</a><br /></td></tr>
<tr class="separator:ga33633f27f8155128cc6815d883f9e22c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafe9ec3849cca99b5d67f76ffafcc3ab2"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gafe9ec3849cca99b5d67f76ffafcc3ab2">XRtcPsu_IsSecondsEventGenerated</a> (<a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *InstancePtr)</td></tr>
<tr class="memdesc:gafe9ec3849cca99b5d67f76ffafcc3ab2"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function returns the seconds event status by reading interrupt status register.  <a href="group__rtcpsu__v1__0.html#gafe9ec3849cca99b5d67f76ffafcc3ab2">More...</a><br /></td></tr>
<tr class="separator:gafe9ec3849cca99b5d67f76ffafcc3ab2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga75de01e02970e25ccbbeb1af33d0e808"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga75de01e02970e25ccbbeb1af33d0e808">XRtcPsu_IsAlarmEventGenerated</a> (<a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *InstancePtr)</td></tr>
<tr class="memdesc:ga75de01e02970e25ccbbeb1af33d0e808"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function returns the alarm event status by reading interrupt status register.  <a href="group__rtcpsu__v1__0.html#ga75de01e02970e25ccbbeb1af33d0e808">More...</a><br /></td></tr>
<tr class="separator:ga75de01e02970e25ccbbeb1af33d0e808"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Copyright &copy; 2015 Xilinx Inc. All rights reserved.</li>
  </ul>
</div>
</body>
</html>
